package com.syni.mdd.sjb.community.base.controller;

import com.syni.mdd.sjb.community.base.service.SjbQywxTagInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author wangbaitao
 * @version 1.0.0
 * <h>企业信息-标签同步控制类</h>
 * @Date 2021/3/1
 **/
@RestController
@RequestMapping("corp/tag")
public class SjbQywxTagInfoController {
    @Autowired
    private SjbQywxTagInfoService sjbQywxTagInfoService;

    /**
     * 进行企业的标签数据同步
     *
     * @param corpId 企业id
     * @return 同步结果
     */
    @PostMapping("syncData")
    public Map<String, Object> syncData(@RequestParam("corpId") String corpId) {
        return sjbQywxTagInfoService.syncData(corpId);
    }
}
